<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="fragments/easyui_insdep_head :: easyui_insdep_head" th:with="title='入货记录项'">
</head>

<body>

<input type="hidden" id="queryId" th:value="${param.purchaseRecordId == null ? '' : param.purchaseRecordId[0]}" />

<table id="tt" class="easyui-datagrid" style="width:100%;height:100%"
       pageList='[1,10,20,30,50]' singleSelect="true" method="get"
       rownumbers="true">
    <thead>
    <tr>
        <th field="wareName" width="200" >商品名称</th>
        <th field="purChanName" width="100" >渠道</th>
        <th field="repertoryName" width="100" >仓库</th>
        <th field="purItemNum" width="80" >数量</th>
        <th field="purItemPx" width="80">总价</th>
    </tr>
    </thead>
    <script type="text/javascript">
        //<![CDATA[
        $("#tt").datagrid({
            queryParams: {
                purchaseRecordId : $("#queryId").val()
            },
            url: "/purchase/purchaseItem",
        });
        //]]>
    </script>



</table>



</body>
</html>